package com.ruoyi.project.system.equipmentStatus.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.system.dept.service.IDeptService;
import com.ruoyi.project.system.equipmentStatus.Service.EquipmentStatusService;
import com.ruoyi.project.system.equipmentStatus.vo.EquipmentStatusListVO;
import com.ruoyi.project.system.post.service.IPostService;
import com.ruoyi.project.system.role.service.IRoleService;
import com.ruoyi.project.system.user.domain.User;
import com.ruoyi.project.system.user.service.IUserService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 用户信息
 *
 * @author ruoyi
 */
@Controller
@RequestMapping("/system/equipmentStatus")
public class EquipmentStatusController extends BaseController
{
    private String prefix = "system/equipmentStatus";

    @Autowired
    private EquipmentStatusService equipmentStatusService;

    @Autowired
    private IRoleService roleService;

    @Autowired
    private IDeptService deptService;

    @Autowired
    private IPostService postService;

    @RequiresPermissions("system:equipmentStatus:view")
    @GetMapping()
    public String user()
    {
        return prefix + "/equipmentStatus";
    }

    @RequiresPermissions("system:equipmentStatus:list")
    @PostMapping("/list")
    @ResponseBody
    public TableDataInfo list(User user)
    {
        startPage();
        List<EquipmentStatusListVO> list = equipmentStatusService.getEquipmentStatusList();
        return getDataTable(list);
    }










}
